import { lazy } from "react";
import {createBrowserRouter} from 'react-router-dom'
import App from "../App";
let Home=lazy(()=>import('../pages/home/Index'))
let Order=lazy(()=>import('../pages/order/Index'))
let Index=lazy(()=>import('../pages/index/Index'))
let routes=[
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'/home',
                element:<Home></Home>
            }
        ]
    },
    {
        path:'/order',
        element:<Order></Order>
    },
    {
        path:'/index',
        element:<Index></Index>
    }
   
]
let router=createBrowserRouter(routes)
export default router